package com.zhihuishu.micro.course.openapi.course.dto;

import java.util.Map;
import java.util.Set;

/**
 * 文件夹目录结构对象
 * @author	jiangli
 */
public class CourseFolderTreeDto extends BaseDto{

	private static final long serialVersionUID = 1L;

    private Integer rootDirId; // root文件夹id
    private Set<Integer> childrenDirIds; //children文件夹id set
    private Map<Integer,CourseFolderDto> dirs;//dirId对应的实际实体
    private Map<Integer,Set<Integer>> dirMapping;//dirId对应的子文件夹id集合

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getRootDirId() {
        return rootDirId;
    }

    public void setRootDirId(Integer rootDirId) {
        this.rootDirId = rootDirId;
    }

    public Set<Integer> getChildrenDirIds() {
        return childrenDirIds;
    }

    public void setChildrenDirIds(Set<Integer> childrenDirIds) {
        this.childrenDirIds = childrenDirIds;
    }

    public Map<Integer, CourseFolderDto> getDirs() {
        return dirs;
    }

    public void setDirs(Map<Integer, CourseFolderDto> dirs) {
        this.dirs = dirs;
    }

    public Map<Integer, Set<Integer>> getDirMapping() {
        return dirMapping;
    }

    @Override
    public String toString() {
        return "CourseFolderTreeDto{" +
                "rootDirId=" + rootDirId +
                ", childrenDirIds=" + childrenDirIds +
                ", dirs=" + dirs +
                ", dirMapping=" + dirMapping +
                "} " + super.toString();
    }

    public void setDirMapping(Map<Integer, Set<Integer>> dirMapping) {
        this.dirMapping = dirMapping;
    }
}

